import json

from client.redis_client import r2


async def get_depart_authority(token: str):
    return json.loads(r2.get(token))['depart']
